package com.lagou.model;

import java.io.Serializable;

public class TestPaper  extends Content  implements Serializable {

    private static final long serialVersionUID = 7131165985425236059L;
    //题目
    private String topic;

    //选项
    private String A;
    private String B;
    private String C;
    private String D;
    //正确答案
    private String correctAnswer;

    private TestPaper testPaper;
    public TestPaper() {
    }

    public TestPaper(String topic, TestPaper testPaper) {
        this.topic = topic;
        this.testPaper = testPaper;
    }

    public TestPaper(String topic, String a, String b, String c, String d, String correctAnswer) {
        this.topic = topic;
        A = a;
        B = b;
        C = c;
        D = d;
        this.correctAnswer = correctAnswer;
    }

    public String getCorrectAnswer() {
        return correctAnswer;
    }

    public void setCorrectAnswer(String correctAnswer) {
        this.correctAnswer = correctAnswer;
    }

    public TestPaper getTestPaper() {
        return testPaper;
    }

    public void setTestPaper(TestPaper testPaper) {
        this.testPaper = testPaper;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getA() {
        return A;
    }

    public void setA(String a) {
        A = a;
    }

    public String getB() {
        return B;
    }

    public void setB(String b) {
        B = b;
    }

    public String getC() {
        return C;
    }

    public void setC(String c) {
        C = c;
    }

    public String getD() {
        return D;
    }

    public void setD(String d) {
        D = d;
    }

    @Override
    public String toString() {
        return "题目: " + topic + "\n" +
                "    "+"A." + A + "  " + "B." + B + "  " + "C. " + C + "  " + "D. " + D + "  " + "正确答案:" + correctAnswer  ;
    }

    public String show(){
        return"题目: " + topic + "\n" +
                "    "+"A." + A + "  " + "B." + B + "  " + "C. " + C + "  " + "D. " + D + "  ";
    }

}
